package com.cyl.manager.act.convert;

import org.mapstruct.Mapper;

import com.cyl.manager.act.domain.entity.CouponCategory;
import com.cyl.manager.act.pojo.dto.CouponCategoryDTO;
import com.cyl.manager.act.pojo.vo.CouponCategoryVO;
import java.util.List;
/**
 * 福利券分类  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface CouponCategoryConvert  {

    /**
     * @param source DO
     * @return DTO
     */
    CouponCategoryDTO do2dto(CouponCategory source);

    /**
     * @param source DTO
     * @return DO
     */
    CouponCategory dto2do(CouponCategoryDTO source);

    List<CouponCategoryVO> dos2vos(List<CouponCategory> list);
}
